﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGRapidForm.Permission.Service.Interface;
using SGRapidForm.Permission.Entity;
using SGRapidForm.Permission.Component;
using Microsoft.Practices.Unity;

namespace SGRapidForm.Permission.Service
{
    public partial class PermissionService : IPermissionService
    {
        [Dependency]
        public RolePageComponent RolePageComponent
        { get; set; }

        public bool RolePage_Add(string roleKeyid, string pageKeyid)
        {
            return this.RolePageComponent.RolePage_Add(roleKeyid, pageKeyid);
        }

        public bool RolePage_Delete(string roleKeyid, string pageKeyid)
        {
            return this.RolePageComponent.RolePage_Delete(roleKeyid, pageKeyid);
        }

        public bool RolePage_DeleteByRoleKeyid(string roleKeyid)
        {
            return this.RolePageComponent.RolePage_DeleteByRoleKeyid(roleKeyid);
        }

        public List<PermissionDetails> RolePage_GetDetailsByRoleKeyidAndModuleKeyid(string roleKeyid, string filterConditions)
        {
            return this.RolePageComponent.RolePage_GetDetailsByRoleKeyidAndModuleKeyid(roleKeyid, filterConditions);
        }
    }
}
